package com.zky.biz;

import java.util.List;

import com.zky.DAO.impl.UsersDaoImp;
import com.zky.entity.Users;





public class TestBackLogin extends  UsersDaoImp {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public String checkRegisterName(String regName) {
		List<Users> list = this.findAll2(regName);
		if (null == list || list.size() == 0) {
		
			return "账号可以使用";
		} else {
			return "账号已存在！";
		}
	}
	/*public String checkRegisterUser(String regPsw) {
		List<Users> list = this.findAll4(regPsw);
		if (null == list || list.size() == 0) {
		
			return "！";
		} else {
			return "密码匹配";
		}
	}
*/
	
	
	
}
